package com.bamboowind.mapper;

import com.bamboowind.pojo.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * @author Blue
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {


    /**
     * 得到分页订单的数据(Limit原生分页)
     *
     * @param pageNow  当前页
     * @param pageSize 每页显示的页数
     * @return
     */
    List<OrderInfo> getOrderInfoListByLimit(@Param("pageNow") int pageNow, @Param("pageSize") int pageSize);

    /**
     * RowBounds分页
     *
     * @param rowBounds
     * @return
     */
    List<OrderInfo> getOrderInfoListByRowBounds(RowBounds rowBounds);

    /**
     * 分页插件PageHelper分页
     *
     * @return
     */
    List<OrderInfo> getOrderInfoListByPageHelper();
}
